package com.mini.client;

import com.mini.vo.BusinessChannelInfoVO;
import com.mini.vo.BusinessCityVO;
import com.mini.vo.BusinessItemInfoVO;
import com.mini.vo.BusinessResult;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import java.util.List;

/**
 * @author: zhaocg
 * @created: 2020/12/04 14:42
 */
@FeignClient(name = "mini-lesson-business" ,url = "${mini.remote-url.mini-lesson-business}")
public interface DictionariesBaseClient {


    /**
     * 获取项目列表
     *
     * @param Authorization
     * @return
     */
    @PostMapping(value = "/tradition/chance/item-info")
    BusinessResult<List<BusinessItemInfoVO>> getItemInfo(@RequestHeader(value = "Authorization") String Authorization);

    /**
     * 获取渠道列表
     *
     * @return
     */
    @GetMapping(value = "/channel/get")
    BusinessResult<List<BusinessChannelInfoVO>> getChannelList(@RequestHeader(value = "Authorization") String Authorization);

    /**
     * 获取所有省份
     *
     * @param Authorization
     * @return
     */
    @GetMapping("/business/city/getProvinceList")
    BusinessResult<List<BusinessCityVO>> getProvinceList(@RequestHeader(value = "Authorization") String Authorization);

}
